package br.com.swp.campestre.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Version;

import org.hibernate.validator.Length;

@Entity
@SequenceGenerator(sequenceName="Loteamento_seq" ,  name="Loteamento_seq" , allocationSize=1)
public class Loteamento implements Serializable
{
    /**
	 * 
	 */
	private static final long serialVersionUID = -1833141956640515582L;
	// seam-gen attributes (you should probably edit these)
    private Long id;
    private int version;
    private String name;

    // add additional entity attributes

    // seam-gen attribute getters/setters with annotations (you probably should edit)

    @Id @GeneratedValue(strategy=GenerationType.SEQUENCE , generator="Loteamento_seq")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Version
    public int getVersion() {
        return version;
    }

    private void setVersion(int version) {
        this.version = version;
    }

    @Length(max = 20)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
